package controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import model.RequestService;


public class Request1Controller implements Controller{

	@Override
	public AttributeAndView handleRequest(HttpServletRequest request,
			HttpServletResponse response) throws Exception {
		//요청 1 을 처리할 Controller호출
		//Ctr로직
		//1.요청파라미터 조회
		String value1 = request.getParameter("value1");
		System.out.println("Request1Controller : value1 = " + value1);
	
		//2.Business 로직 처리- Model호출
		RequestService service = RequestService.getInstance();
		String result = service.handleRequest1();
		
		//3. 처리결과 응답.
		return new AttributeAndView(false, "/WEB-INF/view/response/response1.jsp", "result", result);
	}

}
